package Queue;

/**
 * Created by Administrator on 2017/10/15/015.
 */
public class Customer {
        private int arrivalTime, departureTime;
        public Customer (int arrives)
        {
            arrivalTime = arrives;
            departureTime = 0;
        }
        public int getArrivalTime()
        {
            return arrivalTime;
        }
        public void setDepartureTime (int departs)
        {
            departureTime = departs;
        }
        public int getDepartureTime()
        {
            return departureTime;
        }
        public int totalTime()
        {
            return departureTime - arrivalTime;
        }
    }

